package com.ruoyi.education.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.education.mapper.StudentAttentionMapper;
import com.ruoyi.education.domain.StudentAttention;
import com.ruoyi.education.service.IStudentAttentionService;

/**
 * 重点关注Service业务层处理
 * 
 * @author ruoyi
 * @date 2022-12-26
 */
@Service
public class StudentAttentionServiceImpl implements IStudentAttentionService 
{
    @Autowired
    private StudentAttentionMapper studentAttentionMapper;

    /**
     * 查询重点关注
     * 
     * @param id 重点关注主键
     * @return 重点关注
     */
    @Override
    public StudentAttention selectStudentAttentionById(Long id)
    {
        return studentAttentionMapper.selectStudentAttentionById(id);
    }

    /**
     * 查询重点关注列表
     * 
     * @param studentAttention 重点关注
     * @return 重点关注
     */
    @Override
    public List<StudentAttention> selectStudentAttentionList(StudentAttention studentAttention)
    {
        return studentAttentionMapper.selectStudentAttentionList(studentAttention);
    }

    /**
     * 新增重点关注
     * 
     * @param studentAttention 重点关注
     * @return 结果
     */
    @Override
    public int insertStudentAttention(StudentAttention studentAttention)
    {
        return studentAttentionMapper.insertStudentAttention(studentAttention);
    }

    /**
     * 修改重点关注
     * 
     * @param studentAttention 重点关注
     * @return 结果
     */
    @Override
    public int updateStudentAttention(StudentAttention studentAttention)
    {
        return studentAttentionMapper.updateStudentAttention(studentAttention);
    }

    /**
     * 批量删除重点关注
     * 
     * @param ids 需要删除的重点关注主键
     * @return 结果
     */
    @Override
    public int deleteStudentAttentionByIds(Long[] ids)
    {
        return studentAttentionMapper.deleteStudentAttentionByIds(ids);
    }

    /**
     * 删除重点关注信息
     * 
     * @param id 重点关注主键
     * @return 结果
     */
    @Override
    public int deleteStudentAttentionById(Long id)
    {
        return studentAttentionMapper.deleteStudentAttentionById(id);
    }
}
